package za.org.jcicada.genss.sensor.messages;

import za.org.jcicada.genss.messages.BaseMessage;
import za.org.jcicada.genss.sensor.SensorURN;
import za.org.jcicada.genss.sensor.impl.SensorStatusValue;

/**
 * UpdateSensorInform message class.
 * @author rcrida
 */
public class UpdateSensorStatusInform extends BaseMessage {
    
    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * The URI of the sensor that this update corresponds with
     */
    private SensorURN sensorURN;
    
    /**
     * The status and timestamp of the update
     */
    private SensorStatusValue statusValue;

    /**
     * Construct message
     * @param sensorURN the sensor URI
     * @param statusValue the details of the current value
     */
    public UpdateSensorStatusInform(SensorURN sensorURN, SensorStatusValue statusValue) {
        this.sensorURN = sensorURN;
        this.statusValue = statusValue;
    }
    
    public SensorURN getSensorURN() {
        return sensorURN;
    }
    
    public SensorStatusValue getStatusValue() {
        return statusValue;
    }

}
